package org.thanos.iot.dao.graphic;

import org.apache.ibatis.annotations.Param;
import org.thanos.iot.entity.graphic.GraphicCategory;

import java.util.List;

public interface GraphicCategoryMapper {

    List<GraphicCategory> selectCategoriesByParentIds(@Param("list") List<Integer> parentIds);

    List<GraphicCategory> selectCategoriesSelective();

    List<GraphicCategory> selectCategories(@Param("isCustomized") Integer isCustomized);

    int insertCategory(GraphicCategory graphicCategory);

    int updateCategory(GraphicCategory graphicCategory);

    int deleteCategoriesByIds(@Param("list") List<Integer> ids);
}
